package com.yanqu.road.entity.log.cross.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_feast_log_pvp_apply", dataUpload = true, desc = "山河乐宴-pvp报名", eventName = "shfete_figsign", autoSave = true, uploadCk = true, isCross = true)
public class LogFeastPvpApply extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "玩家", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "才力", dataAttribute = "shfete_ability")
    private long powerVal;

    @FieldTypeAnnotation(desc = "称号", dataAttribute = "shfete_tit")
    private int stateId;

    @FieldTypeAnnotation(desc = "资格", dataAttribute = "shfete_isign")
    private boolean able;

    @FieldTypeAnnotation(desc = "报名排行")
    private int rank;

    @FieldTypeAnnotation(desc = "属性更新时间")
    private long updateTime;

    @FieldTypeAnnotation(desc = "入库时间")
    private Date logTime;

    public LogFeastPvpApply(int activityId, int round, long userId, int stateId, long powerVal, boolean able, int rank, long updateTime) {
        this.activityId = activityId;
        this.round = round;
        this.userId = userId;
        this.stateId = stateId;
        this.powerVal = powerVal;
        this.able = able;
        this.rank = rank;
        this.updateTime = updateTime;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getPowerVal() {
        return powerVal;
    }

    public void setPowerVal(long powerVal) {
        this.powerVal = powerVal;
    }

    public int getStateId() {
        return stateId;
    }

    public void setStateId(int stateId) {
        this.stateId = stateId;
    }

    public boolean isAble() {
        return able;
    }

    public void setAble(boolean able) {
        this.able = able;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
